package com.baibei.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by ChenRui on 2017/8/4 0004 10:56.
 */
public class BannerInfo implements Serializable, Parcelable {
    private String title;

    private String picUrl;

    private String jumpUrl;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getJumpUrl() {
        return jumpUrl;
    }

    public void setJumpUrl(String jumpUrl) {
        this.jumpUrl = jumpUrl;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.title);
        dest.writeString(this.picUrl);
        dest.writeString(this.jumpUrl);
    }

    public BannerInfo() {
    }

    protected BannerInfo(Parcel in) {
        this.title = in.readString();
        this.picUrl = in.readString();
        this.jumpUrl = in.readString();
    }

    public static final Parcelable.Creator<BannerInfo> CREATOR = new Parcelable.Creator<BannerInfo>() {
        @Override
        public BannerInfo createFromParcel(Parcel source) {
            return new BannerInfo(source);
        }

        @Override
        public BannerInfo[] newArray(int size) {
            return new BannerInfo[size];
        }
    };

    @Override
    public String toString() {
        return "BannerInfo{" +
                "title='" + title + '\'' +
                ", picUrl='" + picUrl + '\'' +
                ", jumpUrl='" + jumpUrl + '\'' +
                '}';
    }
}
